package com.rc.saas.mini.service.recharge;

import com.rc.saas.mini.common.base.BaseService;
import com.rc.saas.mini.mapper.recharge.RechargeOrderMapper;
import com.rc.saas.mini.model.recharge.RechargeOrder;
import com.rc.saas.mini.model.recharge.RechargeOrderExample;
import com.rc.saas.mini.vo.recharge.RechargeOrderVo;

/**
 * @author wangzhengwei
 * @create 2021/4/29
 */
public interface RechargeOrderService extends BaseService<Long, RechargeOrder, RechargeOrderExample, RechargeOrderMapper> {
    RechargeOrderVo selectRechargeOrderByOutTradeNo(String outTradeNo);

    /**
     * 充值入帐处理
     */
    boolean updateRechargeOrder(Long rechargeOrderId, String paymentType, String transaction_id);

    boolean updateRechargeOrderRefund(Long rechargeOrderId, String paymenttype, String transaction_id);

    RechargeOrder selectByTransactionId(String transaction_id);
}
